package com.tyk.bookstore.back.payment.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tyk.bookstore.back.payment.model.enume.ShopStatementType;
import com.tyk.bookstore.back.payment.model.enume.StatementNature;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author tyk
 * @description 书店流水
 */
@Schema(name = "ShopStatementDo", description = "书店流水")
@Data
@TableName("shop_statement")
public class ShopStatementDo  implements Serializable{

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "ID")
    @TableId(value = "id")
    private Long id;

    @Schema(description = "来源主体标识")
    @TableField("other_side_identification")
    private Long otherSideIdentification;

    @Schema(description = "来源标识")
    @TableField("source_identification")
    private Long sourceIdentification;

    @Schema(description = "交易值")
    @TableField("modification")
    private BigDecimal modification;

    @Schema(description = "交易性质[0收入,1指出]")
    @TableField("nature")
    private StatementNature nature;

    @Schema(description = "交易类型")
    @TableField("type")
    private ShopStatementType type;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;
}
